<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.Date,java.text.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="Style.css" rel="stylesheet" type="text/css"/>
</head>
<%
Integer id =(Integer)request.getAttribute("id");
String name =(String)request.getAttribute("name");
Integer age =(Integer)request.getAttribute("age");
String sex =(String)request.getAttribute("sex");
String birthday =(String)request.getAttribute("birthday");
String descriptions =(String)request.getAttribute("descriptions");
String juese =(String)request.getAttribute("juese");
%>
<body>

<div class="main">
  <form action ="ModifyServlet?id=<%=id%>" method="post">
  

<center>
<h1>请修改用户信息</h1>
     <input type="text" name="name" size='20' maxlength="20" value="<%=name%>"  >
     <br>
     <br>
    <select name="sex">
<%
if("男".equals(sex))
{%>
<option value="男" selected>男</option>
<%
}else{
%>
<option value="男" >男</option>
<%
}
%>
<%
if("女".equals(sex)){
%>
<option value="女" selected>女</option>
<%}else{ %>
<option value="女" >女</option>
<%
}
%>
</select>
<select name="juese">
<%
if("普通用户".equals(juese))
{%>
<option value="普通用户" selected>普通用户</option>
<%
}else{
%>
<option value="普通用户" >普通用户</option>
<%
}
%>
<%
if("预案编译人员".equals(juese)){
%>
<option value="预案编译人员" selected>预案编译人员</option>
<%}else{ %>
<option value="预案编译人员" >预案编译人员</option>
<%
}
%>
</select>
<br>
<br>
     <input type="text" name="age" size='20' maxlength="20" value="<%=age%>">
     <br>
     <br>
     <input type="date" name="birthday" size='20' maxlength="20" value="<%=birthday%>">
     <br>
     <br>
       <input type="text" name="descriptions" size='20' maxlength="20" value="<%=descriptions%>">
       <br>
       <br>
     <input type="submit" name="submit" value="提交" onclick="return gogo()" / > 
     
    </center>  
   
  </form>
<font size=3 color=yellow>
<a href=infor.jsp>返回预案编译人员页面</a>
<br>
<a href=infor2.jsp>返回普通用户页面</a>
<br>
<a href=main.jsp>返回主页面</a>
</font>
  </div>
</body>
</html>